<?php
/**
 * JoosFish - Multi Lingual extention and translation manager for Joostina CMS
 * Copyright (C) 2011 Joostina Team
 * 
 * @name JoosFish
 * @copyright © 2011 Joostina team, © 2003-2007 Think Network GmbH, Munich
 * @license GNU General Public License version 2
 * @version 1.8.2.1
 * @package Joostina
 *
 * Based on the source code of Joom!Fish 1.8.2 copyrighted by Think
 * Network GmbH, Munich. The main contribution is made by developers of
 * Joom!Fish project, but the main reason behind making JoosFish an alongside
 * project is to maintain it's compatibility with Joostina CMS 1.3.x
 * 
 * For full copyright note see documetation/COPYRIGHT.php
 * 
 * For changes see documentation/CHANGELOG.php
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * -----------------------------------------------------------------------------
 * $Id: joomfish.php 7 2011-06-30 07:30:15Z hnatt88@gmail.com $
 *
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/**
 * Joom fish frontend component
 * @package joomfish
 * @subpackage frontend
 * @copyright 2003-2007 Think Network GmbH
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
 * @version $Revision: 567 $
 * @author Alex Kempkens <Alex@JoomFish.net>
*/
global $mosConfig_lang, $_JOOMFISH_MANAGER;

require_once( mosMainFrame::getBasePath() .'/components/com_joomfish/includes/defines.php' );
require_once( JOOMFISH_LIBPATH .DS. 'joomla' .DS. 'language.php' );
require_once( JOOMFISH_LIBPATH .DS. 'joomla' .DS. 'registry.php' );
$lang =& JLanguageHelper::getLanguage();
$lang->load( 'com_joomfish', JOOMFISH_LANGPATH );
//$lang->setDebug( true );

$adminPath = mosMainFrame::getBasePath(1);
if (isset ($mosConfig_admin_path)) {
	$adminPath = $mosConfig_admin_path;
}
$adminPath = $adminPath . '/components/com_joomfish';

if( !class_exists( 'JoomFishManager' ) ) {
	require_once( "$adminPath/joomfish.class.php" );
}

require_once( $mainframe->getPath( 'front_html' ) );

//HTML_joomfish::showLanguages($_JOOMFISH_MANAGER);
?>
